package com.bdqn.t382.lx.service.impl;

import com.bdqn.t382.lx.mapper.StorageRecordMapper;
import com.bdqn.t382.lx.pojo.StorageRecord;
import com.bdqn.t382.lx.service.StorageRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class StorageRecordServiceImpl implements StorageRecordService {
    @Autowired
    StorageRecordMapper storageRecordMapper;

    @Transactional
    @Override
    public int insert(StorageRecord storageRecord) {
        return storageRecordMapper.insert(storageRecord);
    }

    @Transactional
    @Override
    public int delete(int id) {
        return storageRecordMapper.delete(id);
    }

    @Transactional
    @Override
    public int update(StorageRecord storageRecord) {
        return storageRecordMapper.update(storageRecord);
    }
}
